package com.aspose.cells;

public class PivotFormatConditionCollection extends CollectionBase {
   Worksheet b;
   PivotTable c;

   PivotFormatConditionCollection(PivotTable table, Worksheet sheet) {
      this.c = table;
      this.b = sheet;
   }

   int a() {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)(new PivotFormatCondition(this, false)));
      return this.getCount() - 1;
   }

   public int add() {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)(new PivotFormatCondition(this, true)));
      return this.getCount() - 1;
   }

   public PivotFormatCondition get(int index) {
      return (PivotFormatCondition)this.a.get(index);
   }

   void a(PivotFormatConditionCollection var1) {
      for(int var2 = 0; var2 < var1.getCount(); ++var2) {
         PivotFormatCondition var3 = new PivotFormatCondition(this, false);
         var3.a(var1.get(var2));
         com.aspose.cells.b.a.a.ze.a(this.a, (Object)var3);
      }

   }
}
